<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑用户</title>
    <script>
        window.onload = function () {
            document.getElementsByName("user_sex")[0][value='{$user.user_sex}'].selected=true;
        }
    </script>
</head>
<body>
    <h1>编辑用户</h1>
    <hr>
    <form action="{:url('edit')}" method="post">
        <input name="id" value="{$user.id}" style="display: none;">
        <p>用户名：<input type="text" name="user_name" value="{$user.user_name}"></p>
        <p>密码：<input type="text" name="user_pass" value="{$user.user_pass}"></p>
        <p>号码：<input type="text" name="user_phone" value="{$user.user_phone}"></p>
        <p>邮箱：<input type="text" name="user_email" value="{$user.user_email}"></p>
        <p>性别：
            <select name="user_sex" style="width: 50px;height: 20px;">
                <option value="0">男</option>
                <option value="1">女</option>
            </select>
        </p>
        <input type="submit" value="提交">
    </form>
</body>
</html>